package cc.messcat.dao.system;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;

import cc.messcat.common.dao.BaseDaoImpl;
import cc.messcat.entity.level.RoleLevel;
@Repository
public class RoleLevelDaoImpl extends BaseDaoImpl<RoleLevel>implements RoleLevelDao {

	@Override
	public List<RoleLevel> lietRoleLevels(RoleLevel roleLevel) {
		Criteria criteria = getCurrentSession().createCriteria(RoleLevel.class);
		criteria.add(Restrictions.ge("level", roleLevel.getLevel()));
		return criteria.list();
	}

	

}
